package hg;
import java.util.*;
public class Main2 
{
	public static void main(String[] args) 
	{
 		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
 		String b="";
		while(str!=null)
		{
			int number = 0;
 			int num = Integer.parseInt(str);
	        String a = Integer.toBinaryString(num);
	        if(num==0)
	        {   number = 32;
	        	b=Integer.toString(number);
	        }
 	        else if(num>0)
 	        {   number = 32-a.length();
 	        	b=Integer.toString(number);
 	        }
 	        else if(num<0)
 	        {   number = 0;
 	        	b=Integer.toString(number);
 	        }
	        System.out.println(b);
	        str=in.nextLine();
		}
		in.close();
 	}
}
